﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace USpell.Models
{
    /// <summary>
    /// 我拼你猜数据结构
    /// </summary>
    public class Guess : NotifyObject
    {
        private string guessInfo;

        /// <summary>
        /// 猜测描述
        /// </summary>
        public string GuessInfo
        {
            get { return guessInfo; }
            set
            {
                guessInfo = value;
                RaisePropertyChanged("GuessInfo");
            }
        }

        private string guessTarget;

        /// <summary>
        /// 猜测目标/答案
        /// </summary>
        public string GuessTarget
        {
            get { return guessTarget; }
            set
            {
                guessTarget = value;
                RaisePropertyChanged("GuessTarget");
            }
        }

        private string createTime;

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTime
        {
            get { return createTime; }
            set
            {
                createTime = value;
                RaisePropertyChanged("CreateTime");
            }
        }

        private int validTime;

        /// <summary>
        /// 有效期限 (单位：分钟)
        /// </summary>
        public int ValidTime
        {
            get { return validTime; }
            set
            {
                validTime = value;
                RaisePropertyChanged("ValidTime");
            }
        }

        /// <summary>
        /// 游戏创建者ID
        /// </summary>
        public string FromId { get; set; }

        /// <summary>
        /// 游戏发送玩家ID
        /// </summary>
        public string ToId { get; set; }

        public int Id { get; set; }
         
        private int guessTimes;

        /// <summary>
        /// 猜测次数
        /// </summary>
        public int GuessTimes
        {
            get { return guessTimes; }
            set
            {
                guessTimes = value;
                RaisePropertyChanged("GuessTimes");
            }
        }


        public int FriendType;
        public int Type;
    }
}
